package com.labbit.platform.commons.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Description 公共配置文件
 * @Date 2019-07-28 19:49
 * @Author CHEN YU
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "common")
public class CommonProperties {

    private Integer sessionTimeout;

    private String passwordSalt;

    /**
     * session store
     * [guavaSession,redisSession]
     */
    private String sessionStore;

    private String tokenName;

    private Boolean enableLoginValid = true;

    private Integer phoneValidMessageTime;

    /**
     * 登录白名单
     */
    private List<String> loginWhiteList;
}
